﻿package org.grizzly.exception;

/**
 * 
 * ServiceException.java Create on Jun 22, 2011 11:08:03 AM  
 * @author wangjh 
 * @version 1.0
 */
public class ServiceException extends Exception {

	private static final long serialVersionUID = -1137080965034845282L;

	public ServiceException(){
		super();
	}
	
	public ServiceException(String detail){
		super(detail);
	}
	
	/**
	 * 业务异常构造方法
	 * @param detail	异常信息
	 * @param operate	异常后执行的action操作，例如 main.aspx?method=toAdd
	 */
	public ServiceException(String detail,String operate){
		super(detail);
		this.setOperate(operate);
	}
	
	private String operate;

	public String getOperate() {
		return operate;
	}

	public void setOperate(String operate) {
		this.operate = operate;
	}
	
	
}
